﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;

namespace WebApplication1.Logger
{
    public class FileLogger
    {
        public void LogException(Exception e)
            {
                
                 File.WriteAllLines("C://Error//" + DateTime.Now.ToString("dd-MM-yyyy mm hh ss")+".txt", 
                     new string[] 
                     {
                        "Message:"+e.Message,
                        "Stacktrace:"+e.StackTrace
                    });
            }
    }
}